﻿@using Tienda.Models
@model Cliente

@if (Model != null)
{
    <table>
        <thead>
            @using (Html.BeginForm("ModificarCliente", "Cliente", FormMethod.Post))
            {
                <tr>
                    <td>@Html.DisplayNameFor(m => m.Rut)</td>
                    <td>@Html.HiddenFor(m => m.Persona.Rut)</td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(m => m.Persona.Nombre)</td>
                    <td>@Html.TextBoxFor(m => m.Persona.Nombre)</td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(m => m.Persona.Apellido)</td>
                    <td>@Html.TextBoxFor(m => m.Persona.Apellido)</td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(m => m.Persona.Direccion)</td>
                    <td>@Html.TextBoxFor(m => m.Persona.Direccion)</td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(m => m.Persona.Telefono)</td>
                    <td>@Html.TextBoxFor(m => m.Persona.Telefono)</td>
                </tr>
                <tr>
                    <td>@Html.DisplayNameFor(m => m.estadoCliente)</td>
                    <td>@Html.TextBoxFor(m => m.estadoCliente)</td>
                </tr>
                <tr>
                    <td colspan="2"><button type="submit">Guardar</button></td>

                </tr>
            }
        </thead>

    </table>
}
else
{
    <h3>No Existen Datos</h3>
}



